<%layout("/common/layout.html"){%>

<div class="am-g am-g-fixed blog-g-fixed">

    <div class="am-u-md-8">

        <ol class="am-breadcrumb">
            <li><a href="#" class="am-icon-home">首页</a></li>
            <li><a href="#">发布新书</a></li>
        </ol>

        <div class="am-lg am-md-text-center">
            <h2>出售新书</h2>
            <form method="post" action="${base}/book/addBook" class="am-form">
                <label for="isbn">ISBN码</label>
                <input id="isbn" name="ISBN" placeholder="ISBN码">
                <br>
                <br>
                <label>
                    <input id='sell' type="radio" name="type" value="0">出售
                </label>
                <label>
                    <input id='buy' type="radio" name="type" value="1">求购
                </label>
                <label>
                    <input id='send' type="radio" name="type" value="2">赠送
                </label>

                <h3>标签</h3>
                <%for(cate in session.category){%>
                <input type="radio" name="category" value="${cate.id}">${cate.name}
                <%}%>

                <p><input id="price" type="text" name="price" style="display: none" class="am-form-field am-round" placeholder="书的价格"/></p>
                <p><textarea id="method" name="method" style="display: none" class="am-form-field am-round" placeholder="附加条件..."></textarea></p>

                <br>
                <br>
                <div class="am-lg-text-center">
                    <input type="submit" value="发布" class="am-btn am-btn-primary">
                </div>
            </form>
        </div>

    </div>
    <%include("/common/right.html"){}%>
</div>
<%}%>